import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/list`,
      method: 'post',
      data
    })
  },
  // 上传签收单
  upload(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/upload-sign`,
      method: 'post',
      data
    })
  },
  // 变更提货类型
  uploadType(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/update-receipt-type`,
      method: 'post',
      data
    })
  },
  // 录入跟踪信息
  inputTrace(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/input-trace`,
      method: 'post',
      data
    })
  },
  // 下载入仓文件
  download(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/download-receipt`,
      method: 'post',
      data
    })
  },
  // 上传入仓单
  uploadReceipt(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/upload-receipt`,
      method: 'post',
      data
    })
  },
  // 装箱明细
  boxDetail(data) {
    return request({
      url: `/v1/warehouse-receipt/warehouse-receipt/box-detail`,
      method: 'post',
      data
    })
  },
}
